//
//  JQSettingGroup.m
//  JQKit
//
//  Created by JQZ on 2017/12/29.
//  Copyright © 2017年 JQZ. All rights reserved.
//

#import "JQSettingGroup.h"

@implementation JQSettingGroup

+ (instancetype)groupWithHeaderTitle:(NSString*)headerTitle footerTitle:(NSString*)footerTitle items:(NSMutableArray<JQSettingItem*> *)items
{
    JQSettingGroup *group = [[JQSettingGroup alloc] init];
    group.headerTitle = headerTitle;
    group.footerTitle = footerTitle;
    group.items = items;
    group.headerHeight = 0.0f;
    group.footerHeight = 0.0f;
    
    return group;
}

#pragma mark - Getter
- (NSUInteger) count
{
    return self.items.count;
}

@end
